import request from '@/utils/request'

//  获取商品模板分页列表
export function listGoods(query){
  return request({
    url: '/manager/goods/draft/list',
    method: 'get',
    params: query
  })
}




//查看商品模板详情
export function getGoodsDraftDetail(id){
  return request({
    url: '/manager/goods/draft/' + id,
    method: 'get',
  })
}


//保存商品模板
export function saveGoodsDraft(data){
  return request({
    url: '/manager/goods/draft/save/',
    method: 'post',
    data: data
  })
}


//删除商品模板
export function delGoodsDraft(id){
  return request({
    url: '/manager/goods/draft/' + id,
    method: 'delete',
  })
}
